import React, {Component} from 'react'

interface HTMLViewProps {
  html: string
  className?: string
}

class HtmlView extends Component<HTMLViewProps> {
  render(): React.ReactNode {
    let {className} = this.props
    return (
      <div
        dangerouslySetInnerHTML={{__html: this.props.html}}
        className={'last-child-mb-0 ' + (className ? className : '')}
      />
    )
  }
}

export default HtmlView
